package com.mrjy.activity.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.mrjy.activity.dto.ActivityPaidDTO;
import com.mrjy.activity.dto.ActivitySignUpPaidDTO;
import com.mrjy.common.entity.ActivitySignupInfo;

public interface IActivitySignupInfoDao {
    int deleteByPrimaryKey(Integer id);

    int insert(ActivitySignupInfo record);

    int insertSelective(ActivitySignupInfo record);

    ActivitySignupInfo selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(ActivitySignupInfo record);

    int updateByPrimaryKey(ActivitySignupInfo record);

	List<ActivityPaidDTO> queryPageByUserId(Integer userId);
	
	int countByUserIdAndActivityId(@Param("userId")Integer userId, @Param("activityId")Integer activityId);

	ActivitySignupInfo queryActivityInfo(ActivitySignupInfo actiSignupInfo);
	
	List<ActivitySignUpPaidDTO> selectListByUserIdAndActId(ActivitySignupInfo actiSignupInfo) ;

	int selectCountByUserIdAndActId(ActivitySignupInfo info);
}